package com.qq.afterSaleSystem.service;

import com.qq.afterSaleSystem.entity.Apply;
import com.qq.afterSaleSystem.entity.ShopMaintain;
import com.qq.afterSaleSystem.entity.MaintainMoney;
import com.qq.afterSaleSystem.entity.Part;

import java.util.List;


public interface ShopMaintainService {
    List<ShopMaintain> getAll1();

    List<ShopMaintain> getNumOfMaintainTypeAndDo();

    List<ShopMaintain> getNumOfMaintainPerson();

    int addShopMaintain(ShopMaintain cmt);

    ShopMaintain shopMaintainById(Integer id);

    int updateShopMaintain(ShopMaintain cmt);

    int deleteShopMaintain(Integer id);

    List<Part> getPart();

    int insertApply(Apply ap);

    List<Apply> getApplyByCarId(Integer id);

    List<Apply> getAllApply();

    int deleteApply(Integer id);

    int updateApplyStateTo1(Integer id, String partsName);

    List<Apply> getAllApplyStateIs1();

    int insertMaintainMoney(Integer id, String partsName, String time);

    List<MaintainMoney> getMaintainMoneyByCarId(Integer id);

    int updateMoneyById(MaintainMoney money);

    MaintainMoney getMoneyById(Integer id);
}

